import { defaultSetting, defaultSeries } from '../setting.js';
import custoConfig from '../custom';
function getOpt({
    dataCols = {},
    setting = {}
} = {}) {
    let defaultSet = defaultSetting(dataCols, setting);
    let { barWidth, stack, label } = custoConfig(setting);
    let seriesData = defaultSeries(dataCols, { stack, label, barWidth });
    let option = {
        ...defaultSet,
        series: seriesData
    };
    return option;
}

export default getOpt